@fz10: 10px;
@fz12: 12px;
@fz14: 14px;
@fz16: 16px;
@color-h1: #111111;
@color-h2: #656565;
@color-h3: #919191;
@color-h4: #DF0011;
@color-bg: #f3f4f5;
@theme-color: #DF0011;
page {
  font-size: @fz14;
  box-sizing: border-box;
  background-color: @color-bg;
}

view,
button,
input {
  box-sizing: border-box;
}

// main
.main {
  position: relative;
  z-index: 1;
  padding: 44px 12px 64px 12px;
}

// setting block
.setting {
  border-radius: 4px;
  margin-bottom: 10px;
  background: #ffffff;
  &__item {
    position: relative;
    &:after {
      position: absolute;
      left: 0;
      bottom: 0;
      content: '';
      width: 100%;
      height: 1px;
      background: @color-bg;
      transform: scaleY(.5);
      transform-origin: left bottom;
    }
    &:last-child {
      &:after {
        content: none;
      }
    }
  }
  .item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    &__l {
      border-left: 4px solid @theme-color;
      padding: 0 10px;
      flex-shrink: 0;
      color: @color-h1;
    }
    &__c {
      flex: 1;
      padding: 0 10px;
    }
    &__r {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      padding-right: 12px;
      .rtext{
        padding: 0 12px;
      }
      .icon{
        width: 20px;
        height: 20px;
      }
    }
  }
  .subitem{
    padding: 6px 12px;
    font-size: @fz12;
    // line
    .line{
      padding: 3px 0;
      display: flex;
      line-height: 2;
      .line__key{
        color: @color-h3;
        width: 85px;
        font-weight: 500;
      }
      .line__val{
        flex: 1;
        color: @color-h1;
        font-weight: bold;
      }
      .line__val--red{
        color: @theme-color;
      }
      .line__r{
        display: flex;
        align-items: center;
        .icon{
          width: 20px;
          height: 20px;
        }
      }
    }
  }
}

// button
.main .btn-wrap {
  position: fixed;
  z-index: 1;
  left: 0;
  bottom: 12px;
  display: flex;
  align-items: center;
  left: 50%;
  transform: translateX(-50%);
  .btn{
    border-radius: 3px;
    padding: 0 40px;
    color: #fff;
    font-size: @fz14;
    background: linear-gradient(90deg, @theme-color, #e54b4d);
    box-shadow: 0 0 20px #ccc;
    transition: all 300ms;
    &:before, &:after{
      content: none;
    }
    &:active{
      opacity: .8;
    }
  }
}

// hairline
.hairline{
  width: 100%;
  height: 1px;
  position: relative;
  &::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 200%;
    height: 1px;
    transform: scale(.5);
    transform-origin: left bottom;
    background: #dddddd;
  }
}
